﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLKhachSan.DTO;
using System.Data;
using System.Data.SqlClient;

namespace QLKhachSan.DAO
{
    public class DAO_BangKeDichVu
    {
        public static void themBangKeDichVu(DTO_BangKeDichVu p)
        {
            string[] name = new string[1] { "@MaKh" };
            object[] ob = new object[1] { p.MaKH };
            clsKetNoi.ThucThiLenhCoTS("pr_ThemBangKeDichVu", name, ob, 1);
        }
        public static DataTable hienthiDanhSachBangKeDichVu()
        {
            return clsKetNoi.Load("pr_HienThiBangKeDichVu");
        }
        
        public static void xoaBangKeDichVu(DTO_BangKeDichVu p)
        {
            string[] name = new string[1] { "@MaBangKe" };
            object[] ob = new object[1] { p.MaBangKe };
            clsKetNoi.ThucThiLenhCoTS("pr_XoaBangKeDichVu", name, ob, 1);
        }
    }
}
